package liudan.archetype.annotationtest;

/**
 * Description:
 * Email: liudan@ucfgroup.com
 * Title
 * Copyright: Copyright (c) 2017
 * User: liudan
 * Created on 2017/3/2 15:27
 */
public class VariableParamers {
    public static void main(String[] args) {
         int i=9;
        System.out.println(i/0);
//        System.out.println(add(1, 1, 2, 300));
    }


    public static int add(int x, int... args) {
        int sum = x;
        for (int i : args) {
            sum += i;
        }
        return sum;
    }
}
